Groups the elements of a view according to a specified key selector function.
Namespace:
C1.LiveLinq.LiveViewsAssembly: C1.LiveLinq (in C1.LiveLinq.dll)
Syntax
C# |
---|
public View<GroupView<TKey, T>> GroupBy<TKey>( Expression<Func<T, TKey>> keySelector ) |
Visual Basic |
---|
Public Function GroupBy(Of TKey) ( _ keySelector As Expression(Of Func(Of T, TKey)) _ ) As View(Of GroupView(Of TKey, T)) |
Parameters
- keySelector
- Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T, TKey>)>)>>)>)>
A function to extract the key for each element.
Type Parameters
- TKey
- The type of the key returned by keySelector.